package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.RuleweightmanagementMapper;
import com.scheduling.system.domain.Ruleweightmanagement;
import com.scheduling.system.service.IRuleweightmanagementService;

/**
 * 规则权重管理Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class RuleweightmanagementServiceImpl implements IRuleweightmanagementService 
{
    @Autowired
    private RuleweightmanagementMapper ruleweightmanagementMapper;

    /**
     * 查询规则权重管理
     * 
     * @param id 规则权重管理主键
     * @return 规则权重管理
     */
    @Override
    public Ruleweightmanagement selectRuleweightmanagementById(Long id)
    {
        return ruleweightmanagementMapper.selectRuleweightmanagementById(id);
    }

    /**
     * 查询规则权重管理列表
     * 
     * @param ruleweightmanagement 规则权重管理
     * @return 规则权重管理
     */
    @Override
    public List<Ruleweightmanagement> selectRuleweightmanagementList(Ruleweightmanagement ruleweightmanagement)
    {
        return ruleweightmanagementMapper.selectRuleweightmanagementList(ruleweightmanagement);
    }

    /**
     * 新增规则权重管理
     * 
     * @param ruleweightmanagement 规则权重管理
     * @return 结果
     */
    @Override
    public int insertRuleweightmanagement(Ruleweightmanagement ruleweightmanagement)
    {
        return ruleweightmanagementMapper.insertRuleweightmanagement(ruleweightmanagement);
    }

    /**
     * 修改规则权重管理
     * 
     * @param ruleweightmanagement 规则权重管理
     * @return 结果
     */
    @Override
    public int updateRuleweightmanagement(Ruleweightmanagement ruleweightmanagement)
    {
        return ruleweightmanagementMapper.updateRuleweightmanagement(ruleweightmanagement);
    }

    /**
     * 批量删除规则权重管理
     * 
     * @param ids 需要删除的规则权重管理主键
     * @return 结果
     */
    @Override
    public int deleteRuleweightmanagementByIds(Long[] ids)
    {
        return ruleweightmanagementMapper.deleteRuleweightmanagementByIds(ids);
    }

    /**
     * 删除规则权重管理信息
     * 
     * @param id 规则权重管理主键
     * @return 结果
     */
    @Override
    public int deleteRuleweightmanagementById(Long id)
    {
        return ruleweightmanagementMapper.deleteRuleweightmanagementById(id);
    }
}
